#include <mc9s12dp512.h>
#include "timer.h"

void wait(unsigned short cycles)
{   
	//unsigned short startTime;
	//startTime = TCNT;
  	//while((TCNT-startTime) <= cycles);
//	unsigned short time = TCNT + cycles;

	//while(TCNT < time);
	int i = 0;
	for(;i<2*cycles-1;i++);
}
